package mil.af.amc.adpetracker.model.comparators;

import mil.af.amc.adpetracker.model.EquipmentItem;

import java.util.Comparator;

/**
 * Compares the serial number field of an EquipmentItem class
 *
 * @author Jason Ferguson
 */
public class EquipmentItemSerialComparator implements Comparator<EquipmentItem> {

    public int compare(EquipmentItem o1, EquipmentItem o2) {
        return o1.getSerial().compareTo(o2.getSerial());
    }
}
